package com.example.xungeng2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.xungeng2.pojo.Patrol;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PatrolMapper extends BaseMapper<Patrol> {

    @Insert("insert into patrol (total,today_sum,patrol_sum,task_sum,not_sum) values(#{patrol.total},#{patrol.todaySum},#{patrol.patrolSum},#{patrol.taskSum},#{patrol.not_sum}")
    int save(Patrol patrol);
}
